<template>
  <div class="adduser">

    <el-tabs v-model="activeName">
      <el-tab-pane label="学生管理" name="addstudent">
        <addstudent></addstudent>


      </el-tab-pane>
      <el-tab-pane label="教师管理" name="addteacher">
        <addteacher></addteacher>
      </el-tab-pane>
      <el-tab-pane label="添加管理员" name="addroot" v-if="role >=9000">
        <addadmin></addadmin>
      </el-tab-pane>
      <el-tab-pane label="权限修改" name="Modify_authority" v-if="role >=9000">
        <changePermission></changePermission>
      </el-tab-pane>
      <el-tab-pane label="班级管理" name="Class_management" v-if="role>=9000">
        <Class_management></Class_management>
      </el-tab-pane>
    </el-tabs>


  </div>
</template>

<script>

  import addstudent from '@/components/admin/addstudent'
  import addteacher from '@/components/admin/addteacher'
  import addadmin from '@/components/admin/addadmin'
  import changePermission from '@/components/admin/changePermission'
  import Class_management from '@/components/admin/Class_management'

  export default {

    components: {addstudent, addteacher, addadmin,changePermission,Class_management},

    data() {
      return {
        role:this.$cookie.get("role"),
        role:9999,
        activeName: "addstudent",

      }
    },
    methods: {}
  }
</script>

<style scoped>

</style>
